import { createApp, h } from 'vue'
import App from './App.vue'
import router from './router/index.js'
import '@/assets/reset.css'//引入全局样式
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import store from './store'
//全局引入ElementPlus
// import ElementPlus from 'element-plus'
// import "element-plus/dist/index.css"
const app=createApp(App);
//安装router插件
app.use(router);
app.use(store);//作为插件安装store
//安装ElementPlus插件 全局注册
// app.use(ElementPlus); //打包1.1MB 安装官方插件以后 按需引入组件打包 207KB
//全局注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')
